package com.bumblebee.server.model;

import javax.persistence.Entity;

import org.springframework.util.Assert;

@Entity
public class Category extends AbstractEntity{

	private String name;
	
	private String displayName;

	/**
	 * 
	 * @param name
	 * @param displayName
	 */
	public Category(String name, String displayName){
		Assert.hasText(name);
		Assert.hasText(displayName);

		this.name = name;
		this.displayName = displayName;
	}
	
	protected Category(){
		
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
}
